<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<script type="text/javascript" src="js/jquery-3.3.1.js"></script>
	<title>Document</title>
	<script type="text/javascript">
		$(document).ready(function(){
			$("p").last().css("background-color","yellow");

			$("p").eq(0).css("background-color","red");

			$("p").filter(".intro").css("background-color","blue");

		});
	</script>
</head>
<body>
	<h1>欢迎来到我的主页</h1>
    <p>我是唐老鸭 (index 0)。</p>
    <p class="intro">唐老鸭 (index 1)。</p>
    <p class="intro">我住在 Duckburg (index 2)。</p>
    <p>我最好的朋友是米老鼠 (index 3)。</p>
    <p>我最好的朋友是Mickey</p>
</body>
</html>